<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
	<script type="text/javascript" src="${pageContext.request.contextPath}/admin/scripts/jquery/jquery-1.7.1.js"></script>
</head>
<body>
<form class="form-horizontal" role="form" action="${pageContext.request.contextPath}/AdminUserManagerServlet?method=updateUser"
	  method="post">
	<div class="form-group">
		<label for="firstname1" class="col-sm-2 control-label">账户</label>
		<div class="col-sm-4">
			<input type="hidden" name="uid" value="${user.uid}">
			<input type="text" name="username" readonly value="${user.username}" class="form-control" id="firstname1" style="width:200px;" placeholder="">
		</div>
		<label for="firstname2" class="col-sm-2 control-label">类别:</label>
		<div class="col-sm-4 col-lg-4">
			<select name="state" class="form-control" id="firstname2"  style="width:200px;">
				<option value="0" <c:if test="${user.state == 0}">selected="selected"</c:if> >普通用户</option>
				<option value="1" <c:if test="${user.state == 1}">selected="selected"</c:if> >VIP用户</option>
				<option value="2" <c:if test="${user.state == 2}">selected="selected"</c:if> >管理员</option>
			</select>
		</div>
		<label for="firstname3" class="col-sm-2 control-label">昵称</label>
		<div class="col-sm-4 col-lg-4">
			<input type="text" name="name" value="${user.name}" class="form-control" id="firstname3" style="width:200px;" placeholder="">
		</div>
		<label for="firstname4" class="col-sm-2 control-label">邮箱</label>
		<div class="col-sm-4 col-lg-4">
			<input type="text" name="email" value="${user.email}" class="form-control" id="firstname4" style="width:200px;" placeholder="">
		</div>
		<label for="firstname8" class="col-sm-2 control-label">手机号</label>
		<div class="col-sm-4 col-lg-4">
			<input type="text" name="telephone" value="${user.telephone}" class="form-control" id="firstname8" style="width:200px;" placeholder="">
		</div>

		<label for="date" class="col-sm-2 control-label">出生日期</label>
		<div class="col-sm-4 col-lg-4">
			<input type="date" class="form-control" name="birthday"  value="${user.birthday}" id="date"   style="width:200px;">
		</div>
		<label for="firstname10" class="col-sm-2 control-label">性别</label>
		<div class="col-sm-4 col-lg-4" id="firstname10">
			<input type="radio" name="sex" value="男" <c:if test="${user.sex == '男'}">checked="checked"</c:if> > 男
			<input type="radio" name="sex" value="女" <c:if test="${user.sex == '女'}">checked="checked"</c:if> > 女
		</div>

	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-default">确认</button>
		</div>
	</div>
</form>
</body>
</html>